'use strict';

const Controller = require('egg').Controller;

class HomeController extends Controller {
  async index() {
    const { ctx } = this;
    ctx.body = {
      code: 200,
      data: {
        "nextlPage": false,
        "list": [
          {
            "id": 26,
            "brandId": 3,
            "productCategoryId": 19,
            "feightTemplateId": 0,
            "productAttributeCategoryId": 3,
            "name": "华为 HUAWEI P20 ",
            "pic": "http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180607/5ac1bf58Ndefaac16.jpg",
            "productSn": "6946605",
            "deleteStatus": 0,
            "publishStatus": 1,
            "newStatus": 1,
            "recommandStatus": 1,
            "verifyStatus": 0,
            "sort": 100,
            "sale": 0,
            "price": 3788.00,
            "promotionPrice": null,
            "giftGrowth": 3788,
            "giftPoint": 3788,
            "usePointLimit": 0,
            "subTitle": "AI智慧全面屏 6GB +64GB 亮黑色 全网通版 移动联通电信4G手机 双卡双待手机 双卡双待",
            "originalPrice": 4288.00,
            "stock": 1000,
            "lowStock": 0,
            "unit": "件",
            "weight": 0.00,
            "previewStatus": 1,
            "serviceIds": "2,3,1",
            "keywords": "",
            "note": "",
            "albumPics": "http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180607/5ab46a3cN616bdc41.jpg,http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180607/5ac1bf5fN2522b9dc.jpg",
            "detailTitle": "",
            "promotionStartTime": null,
            "promotionEndTime": null,
            "promotionPerLimit": 0,
            "promotionType": 1,
            "brandName": "华为",
            "productCategoryName": "手机通讯",
            "description": null,
            "detailDesc": null,
            "detailHtml": null,
            "detailMobileHtml": null
          },
          {
            "id": 27,
            "brandId": 6,
            "productCategoryId": 19,
            "feightTemplateId": 0,
            "productAttributeCategoryId": 3,
            "name": "小米8 全面屏游戏智能手机 6GB+64GB 黑色 全网通4G 双卡双待",
            "pic": "http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180615/xiaomi.jpg",
            "productSn": "7437788",
            "deleteStatus": 0,
            "publishStatus": 1,
            "newStatus": 1,
            "recommandStatus": 1,
            "verifyStatus": 0,
            "sort": 0,
            "sale": 0,
            "price": 2699.00,
            "promotionPrice": null,
            "giftGrowth": 2699,
            "giftPoint": 2699,
            "usePointLimit": 0,
            "subTitle": "骁龙845处理器，红外人脸解锁，AI变焦双摄，AI语音助手小米6X低至1299，点击抢购",
            "originalPrice": 2699.00,
            "stock": 100,
            "lowStock": 0,
            "unit": "",
            "weight": 0.00,
            "previewStatus": 0,
            "serviceIds": "",
            "keywords": "",
            "note": "",
            "albumPics": "",
            "detailTitle": "",
            "promotionStartTime": null,
            "promotionEndTime": null,
            "promotionPerLimit": 0,
            "promotionType": 3,
            "brandName": "小米",
            "productCategoryName": "手机数码",
            "description": null,
            "detailDesc": null,
            "detailHtml": null,
            "detailMobileHtml": null
          },
          {
            "id": 28,
            "brandId": 6,
            "productCategoryId": 19,
            "feightTemplateId": 0,
            "productAttributeCategoryId": 3,
            "name": "小米 红米5A 全网通版 3GB+32GB 香槟金 移动联通电信4G手机 双卡双待",
            "pic": "http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180615/5a9d248cN071f4959.jpg",
            "productSn": "7437789",
            "deleteStatus": 0,
            "publishStatus": 1,
            "newStatus": 1,
            "recommandStatus": 1,
            "verifyStatus": 0,
            "sort": 0,
            "sale": 0,
            "price": 649.00,
            "promotionPrice": null,
            "giftGrowth": 649,
            "giftPoint": 649,
            "usePointLimit": 0,
            "subTitle": "8天超长待机，137g轻巧机身，高通骁龙处理器小米6X低至1299，点击抢购",
            "originalPrice": 649.00,
            "stock": 100,
            "lowStock": 0,
            "unit": "",
            "weight": 0.00,
            "previewStatus": 0,
            "serviceIds": "",
            "keywords": "",
            "note": "",
            "albumPics": "",
            "detailTitle": "",
            "promotionStartTime": null,
            "promotionEndTime": null,
            "promotionPerLimit": 0,
            "promotionType": 4,
            "brandName": "小米",
            "productCategoryName": "手机数码",
            "description": null,
            "detailDesc": null,
            "detailHtml": null,
            "detailMobileHtml": null
          },
          {
            "id": 29,
            "brandId": 51,
            "productCategoryId": 19,
            "feightTemplateId": 0,
            "productAttributeCategoryId": 3,
            "name": "Apple iPhone 8 Plus 64GB 红色特别版 移动联通电信4G手机",
            "pic": "http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180615/5acc5248N6a5f81cd.jpg",
            "productSn": "7437799",
            "deleteStatus": 0,
            "publishStatus": 1,
            "newStatus": 1,
            "recommandStatus": 1,
            "verifyStatus": 0,
            "sort": 0,
            "sale": 0,
            "price": 5499.00,
            "promotionPrice": null,
            "giftGrowth": 5499,
            "giftPoint": 5499,
            "usePointLimit": 0,
            "subTitle": "【限时限量抢购】Apple产品年中狂欢节，好物尽享，美在智慧！速来 >> 勾选[保障服务][原厂保2年]，获得AppleCare+全方位服务计划，原厂延保售后无忧。",
            "originalPrice": 5499.00,
            "stock": 100,
            "lowStock": 0,
            "unit": "",
            "weight": 0.00,
            "previewStatus": 0,
            "serviceIds": "",
            "keywords": "",
            "note": "",
            "albumPics": "",
            "detailTitle": "",
            "promotionStartTime": null,
            "promotionEndTime": null,
            "promotionPerLimit": 0,
            "promotionType": 0,
            "brandName": "苹果",
            "productCategoryName": "手机数码",
            "description": null,
            "detailDesc": null,
            "detailHtml": null,
            "detailMobileHtml": null
          },
          {
            "id": 30,
            "brandId": 50,
            "productCategoryId": 8,
            "feightTemplateId": 0,
            "productAttributeCategoryId": 1,
            "name": "HLA海澜之家简约动物印花短袖T恤",
            "pic": "http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180615/5ad83a4fN6ff67ecd.jpg!cc_350x449.jpg",
            "productSn": "HNTBJ2E042A",
            "deleteStatus": 0,
            "publishStatus": 1,
            "newStatus": 1,
            "recommandStatus": 1,
            "verifyStatus": 0,
            "sort": 0,
            "sale": 0,
            "price": 98.00,
            "promotionPrice": null,
            "giftGrowth": 0,
            "giftPoint": 0,
            "usePointLimit": 0,
            "subTitle": "2018夏季新品微弹舒适新款短T男生 6月6日-6月20日，满300减30，参与互动赢百元礼券，立即分享赢大奖",
            "originalPrice": 98.00,
            "stock": 100,
            "lowStock": 0,
            "unit": "",
            "weight": 0.00,
            "previewStatus": 0,
            "serviceIds": "",
            "keywords": "",
            "note": "",
            "albumPics": "",
            "detailTitle": "",
            "promotionStartTime": null,
            "promotionEndTime": null,
            "promotionPerLimit": 0,
            "promotionType": 0,
            "brandName": "海澜之家",
            "productCategoryName": "T恤",
            "description": null,
            "detailDesc": null,
            "detailHtml": null,
            "detailMobileHtml": null
          },
          {
            "id": 31,
            "brandId": 50,
            "productCategoryId": 8,
            "feightTemplateId": 0,
            "productAttributeCategoryId": 1,
            "name": "HLA海澜之家蓝灰花纹圆领针织布短袖T恤",
            "pic": "http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180615/5ac98b64N70acd82f.jpg!cc_350x449.jpg",
            "productSn": "HNTBJ2E080A",
            "deleteStatus": 0,
            "publishStatus": 1,
            "newStatus": 0,
            "recommandStatus": 0,
            "verifyStatus": 0,
            "sort": 0,
            "sale": 0,
            "price": 98.00,
            "promotionPrice": null,
            "giftGrowth": 0,
            "giftPoint": 0,
            "usePointLimit": 0,
            "subTitle": "2018夏季新品短袖T恤男HNTBJ2E080A 蓝灰花纹80 175/92A/L80A 蓝灰花纹80 175/92A/L",
            "originalPrice": 98.00,
            "stock": 100,
            "lowStock": 0,
            "unit": "",
            "weight": 0.00,
            "previewStatus": 0,
            "serviceIds": "",
            "keywords": "",
            "note": "",
            "albumPics": "",
            "detailTitle": "",
            "promotionStartTime": null,
            "promotionEndTime": null,
            "promotionPerLimit": 0,
            "promotionType": 0,
            "brandName": "海澜之家",
            "productCategoryName": "T恤",
            "description": null,
            "detailDesc": null,
            "detailHtml": null,
            "detailMobileHtml": null
          },
          {
            "id": 32,
            "brandId": 50,
            "productCategoryId": 8,
            "feightTemplateId": 0,
            "productAttributeCategoryId": null,
            "name": "HLA海澜之家短袖T恤男基础款",
            "pic": "http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180615/5a51eb88Na4797877.jpg",
            "productSn": "HNTBJ2E153A",
            "deleteStatus": 0,
            "publishStatus": 1,
            "newStatus": 0,
            "recommandStatus": 0,
            "verifyStatus": 0,
            "sort": 0,
            "sale": 0,
            "price": 68.00,
            "promotionPrice": null,
            "giftGrowth": 0,
            "giftPoint": 0,
            "usePointLimit": 0,
            "subTitle": "HLA海澜之家短袖T恤男基础款简约圆领HNTBJ2E153A藏青(F3)175/92A(50)",
            "originalPrice": 68.00,
            "stock": 100,
            "lowStock": 0,
            "unit": "",
            "weight": 0.00,
            "previewStatus": 0,
            "serviceIds": "",
            "keywords": "",
            "note": "",
            "albumPics": "",
            "detailTitle": "",
            "promotionStartTime": null,
            "promotionEndTime": null,
            "promotionPerLimit": 0,
            "promotionType": 0,
            "brandName": "海澜之家",
            "productCategoryName": "T恤",
            "description": null,
            "detailDesc": null,
            "detailHtml": null,
            "detailMobileHtml": null
          },
          {
            "id": 33,
            "brandId": 6,
            "productCategoryId": 35,
            "feightTemplateId": 0,
            "productAttributeCategoryId": null,
            "name": "小米（MI）小米电视4A ",
            "pic": "http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180615/5b02804dN66004d73.jpg",
            "productSn": "4609652",
            "deleteStatus": 0,
            "publishStatus": 1,
            "newStatus": 0,
            "recommandStatus": 0,
            "verifyStatus": 0,
            "sort": 0,
            "sale": 0,
            "price": 2499.00,
            "promotionPrice": null,
            "giftGrowth": 0,
            "giftPoint": 0,
            "usePointLimit": 0,
            "subTitle": "小米（MI）小米电视4A 55英寸 L55M5-AZ/L55M5-AD 2GB+8GB HDR 4K超高清 人工智能网络液晶平板电视",
            "originalPrice": 2499.00,
            "stock": 100,
            "lowStock": 0,
            "unit": "",
            "weight": 0.00,
            "previewStatus": 0,
            "serviceIds": "",
            "keywords": "",
            "note": "",
            "albumPics": "",
            "detailTitle": "",
            "promotionStartTime": null,
            "promotionEndTime": null,
            "promotionPerLimit": 0,
            "promotionType": 0,
            "brandName": "小米",
            "productCategoryName": "手机数码",
            "description": null,
            "detailDesc": null,
            "detailHtml": null,
            "detailMobileHtml": null
          },
          {
            "id": 34,
            "brandId": 6,
            "productCategoryId": 35,
            "feightTemplateId": 0,
            "productAttributeCategoryId": null,
            "name": "小米（MI）小米电视4A 65英寸",
            "pic": "http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180615/5b028530N51eee7d4.jpg",
            "productSn": "4609660",
            "deleteStatus": 0,
            "publishStatus": 1,
            "newStatus": 0,
            "recommandStatus": 0,
            "verifyStatus": 0,
            "sort": 0,
            "sale": 0,
            "price": 3999.00,
            "promotionPrice": null,
            "giftGrowth": 0,
            "giftPoint": 0,
            "usePointLimit": 0,
            "subTitle": " L65M5-AZ/L65M5-AD 2GB+8GB HDR 4K超高清 人工智能网络液晶平板电视",
            "originalPrice": 3999.00,
            "stock": 100,
            "lowStock": 0,
            "unit": "",
            "weight": 0.00,
            "previewStatus": 0,
            "serviceIds": "",
            "keywords": "",
            "note": "",
            "albumPics": "",
            "detailTitle": "",
            "promotionStartTime": null,
            "promotionEndTime": null,
            "promotionPerLimit": 0,
            "promotionType": 0,
            "brandName": "小米",
            "productCategoryName": "手机数码",
            "description": null,
            "detailDesc": null,
            "detailHtml": null,
            "detailMobileHtml": null
          },
          {
            "id": 35,
            "brandId": 58,
            "productCategoryId": 29,
            "feightTemplateId": 0,
            "productAttributeCategoryId": 11,
            "name": "耐克NIKE 男子 休闲鞋 ROSHE RUN 运动鞋 511881-010黑色41码",
            "pic": "http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180615/5b235bb9Nf606460b.jpg",
            "productSn": "6799342",
            "deleteStatus": 0,
            "publishStatus": 1,
            "newStatus": 0,
            "recommandStatus": 0,
            "verifyStatus": 0,
            "sort": 0,
            "sale": 0,
            "price": 369.00,
            "promotionPrice": null,
            "giftGrowth": 0,
            "giftPoint": 0,
            "usePointLimit": 0,
            "subTitle": "耐克NIKE 男子 休闲鞋 ROSHE RUN 运动鞋 511881-010黑色41码",
            "originalPrice": 369.00,
            "stock": 100,
            "lowStock": 0,
            "unit": "",
            "weight": 0.00,
            "previewStatus": 0,
            "serviceIds": "",
            "keywords": "",
            "note": "",
            "albumPics": "",
            "detailTitle": "",
            "promotionStartTime": null,
            "promotionEndTime": null,
            "promotionPerLimit": 0,
            "promotionType": 0,
            "brandName": "NIKE",
            "productCategoryName": "男鞋",
            "description": null,
            "detailDesc": null,
            "detailHtml": null,
            "detailMobileHtml": null
          },
          {
            "id": 36,
            "brandId": 58,
            "productCategoryId": 29,
            "feightTemplateId": 0,
            "productAttributeCategoryId": 11,
            "name": "耐克NIKE 男子 气垫 休闲鞋 AIR MAX 90 ESSENTIAL 运动鞋 AJ1285-101白色41码",
            "pic": "http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180615/5b19403eN9f0b3cb8.jpg",
            "productSn": "6799345",
            "deleteStatus": 0,
            "publishStatus": 1,
            "newStatus": 1,
            "recommandStatus": 1,
            "verifyStatus": 0,
            "sort": 0,
            "sale": 0,
            "price": 499.00,
            "promotionPrice": null,
            "giftGrowth": 0,
            "giftPoint": 0,
            "usePointLimit": 0,
            "subTitle": "耐克NIKE 男子 气垫 休闲鞋 AIR MAX 90 ESSENTIAL 运动鞋 AJ1285-101白色41码",
            "originalPrice": 499.00,
            "stock": 100,
            "lowStock": 0,
            "unit": "",
            "weight": 0.00,
            "previewStatus": 0,
            "serviceIds": "",
            "keywords": "",
            "note": "",
            "albumPics": "",
            "detailTitle": "",
            "promotionStartTime": null,
            "promotionEndTime": null,
            "promotionPerLimit": 0,
            "promotionType": 0,
            "brandName": "NIKE",
            "productCategoryName": "男鞋",
            "description": null,
            "detailDesc": null,
            "detailHtml": null,
            "detailMobileHtml": null
          }
        ]
      }
    }
  }
}

module.exports = HomeController;
